<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
 插件菜单
*/
defined('BY_JYA') or exit('error');
list($basicname)=$arguments;
// 是主应用时的菜单
$menus1=array(
	array(
	'title'=>'平台管理','fa'=>'icon-dianpu','url'=>'jy_creditchange/index/','child'=>array(
		array('title'=>'R币市场','child'=>array(
			array('url'=>'jy_creditchange/index/','title'=>'R币市场概况'),
			array('url'=>'jy_creditchange/basic.module_home/cover/ac=index&type=3','title'=>'R币市场入口'),
			array('url'=>'core/account.article_list/','title'=>'公告列表'),
			array('url'=>'core/account.article_fenlei/','title'=>'公告分类'),
		)),
		array('title'=>'参数设置','child'=>array(
			array('url'=>'jy_creditchange/setting/basic','title'=>'基本参数设置'),
			array('url'=>'jy_creditchange/xieyi/','title'=>'平台协议'),
		)),
	)),
	array('title'=>'转让管理','fa'=>'icon-gengduotupian','url'=>'jy_creditchange/goods/','child'=>array(
		array('title'=>'转让管理','child'=>array(
			array('url'=>'jy_creditchange/goods/','title'=>'转让列表'),
			array('url'=>'jy_creditchange/order/','title'=>'竞价列表'),
			array('url'=>'jy_creditchange/refund/','title'=>'退款列表'),
		)),
	)),
	array('title'=>'币日志','fa'=>'icon-gengduotupian','url'=>'core/member.creditlog/','child'=>array(
		array('title'=>'币日志','child'=>array(
			array('url'=>'core/member.creditlog/','title'=>'币日志'),
			array('url'=>'jy_creditchange/log/','title'=>'记录日志'),
		)),
	)),
	array('title'=>'财务管理','fa'=>'icon-dixiaofei','url'=>'core/member.tixian/','child'=>array(
		array('title'=>'回购管理','child'=>array(
			array('url'=>'jy_creditchange/log//type=3','title'=>'回购列表'),
			array('url'=>'core/member.tixian/','title'=>'提现列表'),
		)),
	)),
);
if(empty($basicname)){
	$menus =$menus1?$menus1:$menus2;
	return $menus ;
}else{
	$basicmens = $this->plugin($basicname)->getmenus();
	if(!empty($basicmens)){
		foreach($basicmens as &$v){
			if($v['isplugin'] == 1){
				$v=$menus2[0];
			}
		}
	}
	return $basicmens;
}

